package com.twxm.breed.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.twxm.breed.entity.WeatherFactor;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface WeatherFactorMapper extends BaseMapper<WeatherFactor> {
    void insertWeatherFactor(WeatherFactor weatherFactor);

    Integer selectIdByPondIdAndCollectionTime(WeatherFactor weatherFactor);

    void updateWeatherFactor(WeatherFactor weatherFactor);

    List<WeatherFactor> getByPondId(String pondId);

    List<String> getPondId();

    List<WeatherFactor> getWeatherInfo(String el);

    List<WeatherFactor> getByPondIdAndDate(Map<String, Object> map);

    List<WeatherFactor> getWeatherInfoByDate(Date date);
}
